package com.ruoyi.business.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.business.domain.Degrees;
import com.ruoyi.business.domain.model.CheckDegreeHis;
import com.ruoyi.business.domain.model.NoCheckDegreeDormitory;
import com.ruoyi.business.domain.model.useDegreesSumEntity;
import com.ruoyi.business.domain.vo.DegreesVo;
import com.ruoyi.business.domain.bo.DegreesBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 宿舍电度数Service接口
 *
 * @author ruoyi
 * @date 2023-06-28
 */
public interface IDegreesService extends IService<Degrees> {
     LambdaQueryWrapper<Degrees> buildQueryWrapper(Degrees entity);

     /**
      * 获取数据并连接宿舍信息
      * */
     List<Degrees> getList(Degrees entity);
    /**
     * 以年未查询，按月统计用电量
     * */
    List<useDegreesSumEntity> useDegreesSum(Integer year);

    /**
     * 获取未抄表的宿舍信息
     * */
    List<NoCheckDegreeDormitory> getNoCheckDegreeDormitory(String readdate);

    List<CheckDegreeHis> getHisList(String buildingname);

    void del(Long id);
}
